package leecode

import (
	"fmt"
	"strconv"
)

func countSeniors(details []string) int {
	var result int
	for _, val := range details {
		ageStr := val[11:13]
		fmt.Println(ageStr)
		age, _ := strconv.Atoi(ageStr)
		if age > 60 {
			result++
		}
	}
	return result
}
